<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/share/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>出错</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<%@ include file="/WEB-INF/share/wechat.jsp"%>
<style type="text/css">
* {margin: 0;padding: 0}
a {color: #00aadb;text-decoration: none}
a:hover {color: #c00;text-decoration: underline}
li {list-style: none;text-overflow: ellipsis;overflow: hidden;white-space: nowrap}
body {font: 12px/1.5em Arial, Verdana, Helvetica, sans-serif;color: #333}
.msgbox {width: 600px;margin: 150px auto;text-align: center;border: 6px solid #e4f4ff}
.msgbox dl {border: 1px solid #88bfc9;padding: 2px}
.msgbox dl dt {height: 28px;line-height: 28px;background: #00b3d4;color: #fff}
.ny-state-icon {display: inline-block;padding-left: 25px;background: no-repeat left center;}
.msgbox dl .msg {padding: 25px 0 20px 0}
.msgbox dl .jump {padding: 0 0 30px 0}
</style>
<script>
		var contentPath = '${ctx}';
	</script>
</head>
<body>
	<div class='msgbox'>
		<dl>
			<dt>
				<strong>消息提示</strong>
			</dt>
			<dd class='msg'>
				<span class="ny-state-icon state-icon-ok">提交完成</span>

			</dd>
			<dd class='jump'>
				页面自动 <a id="href" href="${ctx}/wx/index">跳转</a> 等待时间： <b id="wait">1</b> 
			</dd>
		</dl>
	</div>
	<script type="text/javascript">
(function(){
	var wait = document.getElementById('wait'),href = document.getElementById('href').href;
	var interval = setInterval(function(){
		debugger
		var time = --wait.innerHTML;
		if(time <= 0) {
			location.href = href;
			clearInterval(interval);
		};
	}, 1000);
})();
</script>
</body>
</html>
